cd "$replication\code\"

set matsize 5000

****************************************************************************** Input variables ************************************************************
global cluster "sd_code"
global AS_infs `""""'
global AS_var "NA"
global sample "year!=."
global controls ""
global controlsXYFEs ""
global controlsXinfs ""
global omitted_year1=-1
global omitted_year2=-6
global min_year=-6
global max_year=5
global colour="bw"

global int "elecXroad"
local inf1=substr("${int}",1,4)
local inf2=substr("${int}",6,.)
global  infs "`inf1' `inf2' ${int}"
global absorb "shrid_code i.s_code#i.year"


***** Column 1
global title "Bhuvan"
global depvar "ln_bhuvan_dry"
qui: do Z_Event_code.do
foreach inf in $infs {
	qui estimates restore main_regression
	lincom ${post_terms_`inf'}
}
lincom ${combined_terms}		


***** Column 2
global title "Jain"
global depvar "ln_winter_cropping"
qui: do Z_Event_code.do
foreach inf in $infs {
	qui estimates restore main_regression
	lincom ${post_terms_`inf'}
}
lincom ${combined_terms}	

***** Column 3
global title "A and N"
global depvar "ln_ndvi_delta_r_"
qui: do Z_Event_code.do
foreach inf in $infs {
	qui estimates restore main_regression
	lincom ${post_terms_`inf'}
}
lincom ${combined_terms}	

***** Column 4
global title "ICW index"
global depvar "icw_irrigation"
qui: do Z_Event_code.do
foreach inf in $infs {
	qui estimates restore main_regression
	lincom ${post_terms_`inf'}
}
lincom ${combined_terms}	

